Whack two unused functions from util.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 31 Jul 2013 17:35:45 +0000 (17:35 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 31 Jul 2013 17:35:45 +0000 (17:35 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4491 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/defs.h
gpsbabel/util.cc

index 6e6afac54d3bf929f8da8630225ac366e558defe..0cd81acf28593e4874512f96adaedeb0c7822b6a 100644 (file)
@@ -968,8 +968,6 @@ void debug_mem_close();
 #endif /* DEBUG_MEM */
 
 FILE* xfopen(const char* fname, const char* type, const char* errtxt);
-void xfprintf(const char* errtxt, FILE* stream, const char* format, ...);
-void xfputs(const char* errtxt, const char* s, FILE* stream);
 
 int case_ignore_strcmp(const char* s1, const char* s2);
 int case_ignore_strncmp(const char* s1, const char* s2, int n);
index b891083915d1bdca4a476dfb3f8a1bbbdb5be230..596bc58207d06d29dbfe3498a30ccb842c6285bb 100644 (file)
@@ -278,27 +278,6 @@ xfopen(const char *fname, const char *type, const char *errtxt)
   return f;
 }
 
-void
-xfprintf(const char *errtxt, FILE *stream, const char *format, ...)
-{
-  va_list ap;
-  va_start(ap, format);
-  if (vfprintf(stream, format, ap) < 0) {
-    fatal("%s writing output file.  Error was '%s'.\n",
-          errtxt, strerror(errno));
-  }
-  va_end(ap);
-}
-
-void
-xfputs(const char *errtxt, const char *s, FILE *stream)
-{
-  if (fputs(s, stream) < 0) {
-    fatal("%s Writing output file.  Error was '%s'.\n",
-          errtxt, strerror(errno));
-  }
-}
-
 /*
  * Allocate a string using a format list with optional arguments
  * Returns -1 on error.